package com.chuangke.file.model;

import java.math.BigInteger;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chuangke.framework.model.BasicModel;

/**
 * 
 * @author chuangke
 * @date "2020-09-02"
 */
public class FileDbank extends BasicModel {
   
	
    private static final long serialVersionUID = 1L;
	
	public static final String TYPE_DEPT = "e" ;
	public static final String TYPE_PERSON = "p" ;

	@TableId(value = "id",type = IdType.INPUT)
    private String id;
	
	private String belongId ;

    /** 类型 */
    private String type;
    
    /** 已用 */
    @TableField(exist=false) private BigInteger usedSpace;

	/** 限制 */
    @TableField(exist=false) private BigInteger limitSpace;

    @TableField(exist=false) private String name ;
    
    @TableField(exist=false) private SysFilePermission permission ;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }
    
    public String getBelongId() {
		return belongId;
	}

	public void setBelongId(String belongId) {
		this.belongId = belongId;
	}

	public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
    
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public SysFilePermission getPermission() {
		return permission;
	}

	public void setPermission(SysFilePermission permission) {
		this.permission = permission;
	}

	public BigInteger getUsedSpace() {
		return usedSpace;
	}

	public void setUsedSpace(BigInteger usedSpace) {
		this.usedSpace = usedSpace;
	}

	public BigInteger getLimitSpace() {
		return limitSpace;
	}

	public void setLimitSpace(BigInteger limitSpace) {
		this.limitSpace = limitSpace;
	}
    
}
